package com.example.consumer.service;

import feign.FeignException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author whn
 */
@Component
@FeignClient(name = "manage")
public interface TestService {
    @GetMapping(value = "/test/get")
    Map<String, String> get();

    @GetMapping("/test/setName")
    void set(@RequestParam("name") String name);

    @GetMapping(value = "/demo/sys-role/getRoleList")
    Map<String, Object> getRoleList(@RequestParam("remark") String name);
}
